import { MappingData } from './MappingData'


const ListContent = [
    { span: 24, formType: 'HIDDEN', name: 'uuid', label: 'uuid', rules: true },
    { span: 24, formType: 'INPUT', name: 'process_name', label: '流程名称', rules: true },
    { span: 24, formType: 'COLOR', name: 'process_color', label: '流程底色', rules: true },
    { span: 24, formType: 'TempICON', name: 'process_icon', label: '流程图标', rules: true },
]

const X6BackConfig = [
    { formType: 'TempTitle', label: '背景设置', name: 'X6BackConfigBack' },
    { span: 24, formType: 'COLOR', name: ['background', 'color'], label: '背景颜色', rules: true },
    { span: 24, formType: 'RADIO', name: ['background', 'x6_backImage'], label: '启用背景图', rules: true, valueEnum: MappingData.IsEnabledBool },
    {
        span: 24, formType: 'INPUT', name: ['background', 'image'], label: '图片地址', rules: true,
        jugdeField: ['background', 'x6_backImage'], jugdeValue: [true]
    },
    {
        span: 24, formType: 'SELECT', name: ['background', 'repeat'], label: '重复方式', rules: true, valueEnum: MappingData.x6__Repeat,
        jugdeField: ['background', 'x6_backImage'], jugdeValue: [true]
    },
    {
        span: 24, formType: 'SELECT', name: ['background', 'position'], label: '渲染方式', rules: true, valueEnum: MappingData.x6__Position,
        jugdeField: ['background', 'x6_backImage'], jugdeValue: [true]
    },
    {
        span: 24, formType: 'SELECT', name: ['background', 'size'], label: '图片尺寸', rules: true, valueEnum: MappingData.x6__Size,
        jugdeField: ['background', 'x6_backImage'], jugdeValue: [true]
    },
    {
        span: 24, formType: 'NUMBER', name: ['background', 'opacity'], label: '图片透明', rules: true, min: 0, max: 1, step: 0.01,
        jugdeField: ['background', 'x6_backImage'], jugdeValue: [true]
    },
    { formType: 'TempTitle', label: '网格设置', name: 'X6BackConfigGrid' },
    { span: 24, formType: 'RADIO', name: ['grid', 'visible'], label: '启用背景图', rules: true, valueEnum: MappingData.IsEnabledBool },
    { span: 24, formType: 'RADIO', name: ['grid', 'type'], label: '网格类型', rules: true, valueEnum: MappingData.x6__Grid },
    { span: 24, formType: 'NUMBER', name: ['grid', 'size'], label: '网格尺寸', rules: true },
    {
        span: 24, formType: 'COLOR', name: ['grid', 'args', 'color'], label: '网格颜色', rules: true,
        jugdeField: ['grid', 'type'], jugdeValue: ['dot', 'fixedDot', 'mesh']
    },
    {
        span: 24, formType: 'NUMBER', name: ['grid', 'args', 'thickness'], label: '网格线宽', rules: true,
        jugdeField: ['grid', 'type'], jugdeValue: ['dot', 'fixedDot', 'mesh']
    },


    // 
    // 
    // 网格尺寸




]

const NodeConfig = [
    { span: 24, formType: 'HIDDEN', name: 'uuid', label: 'uuid', rules: true },
    { formType: 'TempTitle', label: '文字设置', name: 'NodeConfigFount' },
    { span: 24, formType: 'INPUT', name: 'text', label: '节点名称', rules: true },
    { span: 24, formType: 'COLOR', name: 'color', label: '文字颜色', rules: true },
    { span: 24, formType: 'NUMBER', name: 'fontSize', label: '文字字号', rules: true },
    { span: 24, formType: 'SELECT', name: 'fontFamily', label: '文字字体', rules: true, valueEnum: MappingData.Font__Family },
    { span: 24, formType: 'RADIO', name: 'fontWeight', label: '文字加粗', rules: true, valueEnum: MappingData.Font__WeightInt },
    { span: 24, formType: 'RADIO', name: 'fontStyle', label: '文字倾斜', rules: true, valueEnum: MappingData.Font__Style },
    { span: 24, formType: 'NUMBER', name: 'shadowOffsetX', label: 'X轴偏移', rules: true },
    { span: 24, formType: 'NUMBER', name: 'shadowOffsetY', label: 'Y轴偏移', rules: true },
    { span: 24, formType: 'NUMBER', name: 'shadowBlur', label: '阴影尺寸', rules: true },
    { span: 24, formType: 'COLOR', name: 'shadowColor', label: '阴影颜色', rules: true },
    { formType: 'TempTitle', label: '样式设置', name: 'NodeConfigStyle' },
    { span: 24, formType: 'RADIO', name: 'type', label: '节点类型', rules: true, valueEnum: MappingData.x6__NodeType },
    { span: 24, formType: 'NUMBER', name: 'radius', label: '圆角角度', rules: true, jugdeField: 'type', jugdeValue: ['rounded'] },
    { span: 24, formType: 'COLOR', name: 'background', label: '背景颜色', rules: true },
    { span: 24, formType: 'NUMBER', name: 'borderSize', label: '边框宽度', rules: true },
    { span: 24, formType: 'RADIO', name: 'borderStyle', label: '边框样式', rules: true, valueEnum: MappingData.Style__BorderType },
    { span: 24, formType: 'COLOR', name: 'borderColor', label: '边框颜色', rules: true },
]



export const ProcessConfig = {
    ListContent,
    X6BackConfig,
    NodeConfig,
}